import { req } from "../utils/req.js"

// 提交订单
export const submitOrdersApi = (params) => req('POST',"/user/api/terminalOrder" , params);

// 再次发起支付
export const submitAgainApi = (params) => req('POST',`/user/api/terminalOrder/pay/again`,params);

// 订单列表
export const orderSearchApi = (params) => req('POST',"/user/api/terminalOrder/search", params);

// 订单详情
export const orderDetailApi = (id) => req('GET',`/user/api/terminalOrder/${id}`);

// 删除订单
export const orderDeleteApi = (id) => req('DELETE',`/user/api/terminalOrder/${id}`);

// 修改订单状态
export const editStatusApi = (id, params) => req('POST',`/user/api/terminalOrder/editStatus/${id}`, params);